<template>
  <div class="login-page">
    <!-- 系统标题logp -->
    <!--  <svg-icon class="logo" iconClass="logo"></svg-icon> -->

    <div class="loginLeft">
      <!-- 登录框 -->
      <div class="sys-title">{{ System_Name }}</div>
      <div class="login-box">
        <div class="login-title">
          <!-- <svg-icon class="indexlogo" iconClass="Frame 4"></svg-icon> -->
        </div>
        <div class="login-form">
          <el-form>
            <span class="titlebox">用户名</span>
            <el-form-item prop="name">
              <el-input
                placeholder="请输入账号"
                ref="zhInputRef"
                v-model="loginForm.name"
              ></el-input>
            </el-form-item>
            <span class="titlebox">密码</span>
            <el-form-item prop="password">
              <el-input
                @keyup.native.enter="login"
                placeholder="请输入密码"
                v-model="loginForm.password"
                show-password
              ></el-input>
            </el-form-item>
          </el-form>
        </div>

        <div class="forget-pwd">
          忘记
          <span class="pwd">密码</span>?
        </div>
        <div style="display: flex; justify-content: center">
          <div class="login-btn" @click="login">登录</div>
          <!-- <div class="login-btn" @click="login">管理员登录</div> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// import { loginApi } from '../../network/Login/Login.js'
export default {
  data() {
    return {
      System_Name,
      loginForm: {
        name: "admin",
        password: "123456",
      },
    }
  },
  methods: {
    login() {
      this.$router.push("/StandardCodeManage")
    },
  },

  mounted() {
    this.$refs.zhInputRef.focus()
  },
}
</script>

<style lang="less" scoped>
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  // input:-internal-autofill-selected {
  //   background-color: red !important;
  // }
  background: #01395e;
  background-repeat: no-repeat;
  background-size: cover;
  .loginLeft {
    .sys-title {
      color: #fff;
      font-size: 22px;
    }
    flex-direction: column;
    width: 30vw;
    min-width: 512px;
    // height: 100%;
    padding: 40px 0;
    background-image: url("../../assets/loginimg/模糊背景卡片.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .login-box {
      color: #fff;
      .login-title {
        height: 4vh;
        // margin-bottom: 4vh;
        letter-spacing: 15px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        .indexlogo {
          width: 30vw;
        }
      }
      .login-btn {
        width: 15vh;
        height: 4vh;
        font-size: 1.8vh;
        color: #fff;
        text-align: center;
        line-height: 4vh;
        border-radius: 4px;
        background-color: #085fb1;
        cursor: pointer;
      }
      .forget-pwd {
        font-size: 1.4vh;
        align-self: flex-start;
        margin: -0.5vh 0 3vh 3.5vh;
        color: #ffffff;
        font-weight: bold;
        margin-right: 6vh;
        cursor: pointer;
        .pwd {
          color: #00f0ff;
        }
      }

      border-radius: 0.4vh;
      // margin-right: 1.35rem;
      display: flex;
      // align-items: center;
      justify-content: center;
      flex-direction: column;
      // background-color: #fff;

      width: 45vh;
      box-sizing: border-box;
      min-width: 42vh;
      // height: 42vh;
      .login-form {
        margin-top: -3vh;
        width: 38vh;
        margin-left: 3.5vh;
        .el-form {
          // margin-top: 4vh;
          .titlebox {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.658);
            // font-size: 0.1vh;
          }
        }
      }

      /deep/.el-input__inner {
        background-color: transparent !important;

        padding-right: 1.05rem;
        color: #ffffff;
        border: none;
        border-bottom: 0.1vh solid rgba(255, 255, 255, 0.4);
        // border-bottom: 1px solid #fff;
        border-radius: 0;
        font-size: 18px;
        padding-left: 0;
      }

      // input:-internal-autofill-selected {
      //   background-color: red !important;
      // }
    }
  }
}
</style>
